// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.entity;

import org.apache.ibatis.type.JdbcType;
import top.geeke.toolkit.supertable.annotation.SuperColumn;
import top.geeke.toolkit.supertable.annotation.SuperTable;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 系统操作日志表
 * </p>
 * @author 瞄你个汪
 * @since 2024-05-01 12:00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_log_op")
@SuperTable(value = "系统操作日志表", isSystem = true)
public class SysLogOp extends SysLogVis implements Serializable {
    private static final long serialVersionUID = 1L;

    @SuperColumn(value = "请求方式", nullable = true, length = 32)
    private String httpMethod;

    @SuperColumn(value = "请求地址", columType = JdbcType.LONGVARCHAR, nullable = true)
    private String requestUrl;

    @SuperColumn(value = "请求参数", columType = JdbcType.LONGVARCHAR, nullable = true)
    private String requestParam;

    @SuperColumn(value = "返回结果", columType = JdbcType.LONGVARCHAR, nullable = true)
    private String returnResult;

    @SuperColumn(value = "事件ID", nullable = true)
    private Integer eventId;

    @SuperColumn(value = "线程ID", nullable = true)
    private Integer threadId;

    @SuperColumn(value = "请求跟踪ID", length = 128, nullable = true)
    private String traceId;

    @SuperColumn(value = "日志消息Json", columType = JdbcType.LONGVARCHAR, nullable = true)
    private String message;
}
